package com.sitech.ibnms.c3p.domain;

import com.sitech.ismp.workflow.domain.Task;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2015/1/8.
 */
public class C3pManualTask implements Serializable{
    private Integer execId;
    private Integer activityId;
    private Integer preActivityId;
    private Integer processId;
    private String title;
    private Integer activityExecId;
    private String c3pTaskId;
    private String taskFrom;
    private Date createTime;
    private String executeUserId;

    public Integer getExecId() {
        return execId;
    }

    public void setExecId(Integer execId) {
        this.execId = execId;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getPreActivityId() {
        return preActivityId;
    }

    public void setPreActivityId(Integer preActivityId) {
        this.preActivityId = preActivityId;
    }

    public Integer getProcessId() {
        return processId;
    }

    public void setProcessId(Integer processId) {
        this.processId = processId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getActivityExecId() {
        return activityExecId;
    }

    public void setActivityExecId(Integer activityExecId) {
        this.activityExecId = activityExecId;
    }

    public String getC3pTaskId() {
        return c3pTaskId;
    }

    public void setC3pTaskId(String c3pTaskId) {
        this.c3pTaskId = c3pTaskId;
    }

    public String getTaskFrom() {
        return taskFrom;
    }

    public void setTaskFrom(String taskFrom) {
        this.taskFrom = taskFrom;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getExecuteUserId() {
        return executeUserId;
    }

    public void setExecuteUserId(String executeUserId) {
        this.executeUserId = executeUserId;
    }

    public C3pManualTask() {

    }

    public C3pManualTask(Task task) {
        this.setActivityExecId(task.getTaskId());
        this.setTitle(task.getTitle());
        this.setActivityId(task.getCurrActId());
        this.setCreateTime(new Date());
        this.setExecId(task.getSerialNo());
        this.setExecuteUserId(task.getCurrDealer());
        this.setPreActivityId(task.getPreActId());
        this.setProcessId(task.getProcessId());
    }
}
